package LINE.comm.util;

public class StringUtil {
	
	
	public static String unescapeHtml(String s)
	{
		return org.apache.commons.lang.StringEscapeUtils.unescapeHtml(s.replace("&amp;#39;", "`").replace("&apos;", "'"));
	}
	
	public static String escapeHtml(String s)
	{
		return org.apache.commons.lang.StringEscapeUtils.escapeHtml(s);
	}
	
	public static String convertHtmlString(String s)
	{
		return s.replaceAll("\\\\", "\\\\\\\\").replaceAll("\"", "\\\\\"");
	}
	
	
}
